package cn.iocoder.yudao.module.book.controller.app.records.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 阅读记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppRecordsPageReqVO extends PageParam {

    @Schema(description = "记录id", example = "26484")
    private Integer recordId;

    @Schema(description = "用户id", example = "30640")
    private Integer userId;

    @Schema(description = "绘本id", example = "960")
    private Integer bookId;

    @Schema(description = "绘本集id", example = "32749")
    private Integer collectionId;

    @Schema(description = "阅读日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] readingDate;

    @Schema(description = "阅读数量", example = "21704")
    private Integer readingCount;

    @Schema(description = "阅读日志")
    private String readingNotes;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}